<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<script type="text/javascript" src="/public/js/jquery.js"></script>
	<script type="text/javascript" src="/public/js/jquery.validate.js"></script>
	<!-- load cac thu vien vien lien quan trong jquery -->
	<!-- datepicker -->
	<script type="text/javascript" src="/public/js/ui/jquery.ui.datepicker.js"></script>
	<script type="text/javascript" src="/public/js/ui/jquery.ui.datepicker-vi.js"></script>
	<script type="text/javascript" src="/public/js/ui/jquery.ui.widget.js"></script>
	<script type="text/javascript" src="/public/js/ui/jquery.ui.core.js"></script>
	
	<script type="text/javascript" src="/public/templates/default/js/executeJs.js"></script>
	
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta http-equiv="content-language" content="en" />
    <meta name="robots" content="all,follow" />

    <meta name="LLP" lang="en" content="All: Võ Xuân Hoan ; e-mail: voxuanhoan@gmail.com" />
    <meta name="copyright" lang="en" content="Webdesign: ; e-mail: voxuanhoan@gmail.com" />

    <meta name="description" content="Đồ án thực tập tốt nghiêp" />
    <meta name="keywords" content="thi trăc nghiệm online" />
    <?php 
	echo $this->headTitle();
	
	echo $this->headLink()->prependStylesheet('/public/templates/default/css/style.css')
						->prependStylesheet('/public/templates/default/css/reset.css')
						->prependStylesheet('/public/templates/default/css/main.css')
						->prependStylesheet('/public/templates/default/css/print.css')
						->prependStylesheet('/public/css/demos.css')
						->prependStylesheet('/public/css/base/jquery.ui.all.css');
						
   		
	echo $this->headScript()->appendFile("/public/js/ui/jquery.ui.mouse.js")
								->appendFile("/public/js/ui/jquery.ui.draggable.js")
								->appendFile("/public/js/ui/jquery.ui.button.js")
								->appendFile("/public/js/ui/jquery.ui.position.js")
								->appendFile("/public/js/ui/jquery.ui.resizable.js")
								->appendFile("/public/js/ui/jquery.ui.dialog.js")
								->appendFile("/public/js/ui/jquery.effects.core.js");
								
//	echo $this->headScript(); // Xuat ra cac script dc tao trong controller  
?>  

    <!--[if lte IE 6]><link rel="stylesheet" type="text/css" href="css/main-msie.css" /><![endif]-->
    <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/ui-lightness/jquery-ui.css" />    
    <title>Quiz Online</title>
</head>

<body>

<div id="main">

    <!-- Header -->
    <div id="header">

        <h1 id="logo">
        <a href="<?php  echo $this->baseUrl();?>" title="[Go to homepage]">
        	<img src="/public/templates/default/images/quizLogo.png" alt="LOGO" />
        	<b>Quiz</b><i>Online</i>
        </a>
        </h1>
        <p class="hi-user">Xin chào: <b>
        	<?php 
        		$auth = Zend_Auth::getInstance();
        		if($auth->hasIdentity()){
	        		$user = $auth->getIdentity();
	        		echo $user->ten;
	        		if($auth->getIdentity()->quyen == "admin" 
	        			|| $auth->getIdentity()->quyen == "giaovien"){
	        			echo '<span><a href="'.$this->baseUrl('admin/index').'">Quản lý</a></span>';
	        		}
        		}else{
        			echo 'Khách';
        		}
        		
        		
        	?>
        	</b>
        </p>
        <hr class="noscreen" />

        <!-- Navigation -->
        <div id="nav">
            <a href="javascript:void();" id="nav-active" class="lnk-contact">Liên hệ</a> <span>|</span>
            <a href="<?php echo $this->baseUrl('front/about/');?>">About us</a> <span>|</span>
            <a class="nav-login" href="javascript:void();">Đăng nhập</a> <span>|</span>
            <a class="nav-logout" href="<?php echo $this->baseUrl('front/login/logout');?>">Thoát</a>
        </div> <!-- /nav -->
        
<!--        Dang nhập-->
        <div id="login-form" title="Đăng nhập">
        	<form action="<?php echo $this->baseUrl('/front/login/login');?>" class="validate-form-login" method="post">
        		<table>
        			<tr>
        				<td>Tên đăng nhập</td>
        				<td><input type="text" name="txtUser" class="required" /><b /></td>
        			</tr>
        			<tr>
        				<td>Mật khẩu</td>
        				<td><input type="password" name="txtPass" class="required" /><b /></td>
        			</tr>				
        			<tr>
        				<td colspan="2">
        					<input id="login-form-bt-submit" type="submit" name="cmdLogin" value="Đăng nhập"/>
        				</td>
        			</tr>		
        		</table>
        	
        	</form>
        </div>
    </div> <!-- /header -->
   
    <!-- Tray -->
    <div id="tray">
        <ul>
            <li id="tray-active">
            	<a href="<?php echo $this->url(array(
            									'module'	=> 'front',
												'controller'=> 'index',
            									'action'	=>	'index'
            								));?>">Trang chủ</a></li> <!-- Active page -->
            <li><a href="<?php echo $this->url(array(
            									'module'	=> 'front',
												'controller'=> 'info',
            									'action'	=>	'index'
            								)
            						);?>">Thông tin</a>
            </li>
            <li><a href="<?php echo $this->url(array(
            									'module'	=>	'front',
            									'controller'=>	'mark',
            									'action'	=>	'index'
            								));?>">Xem điểm</a>
            </li>
            <li><a href="<?php echo $this->url(array(
            									'module'	=>	'front',
            									'controller'=> 	'exame',
            									'action'	=>	'index'
            								));?>">Làm bài kiểm tra</a>
            </li>
        </ul>
        
        <!-- Search -->
        <div id="search" class="box">
            <form action="#" method="get">
                <div class="box">
                    <div id="search-input"><span class="noscreen">Search:</span>
                        <input type="text" size="30" name="" value="Tìm kiếm" />
                    </div>
                    <div id="search-submit">
                    </div>
                </div>
            </form>
        </div> <!-- /search -->

    <hr class="noscreen" />
    </div> <!-- /tray -->

    <!-- Promo -->
    <div id="col-top"></div>
    
    <?php
        echo $this->layout()->content;
    ?>
    
     <!--        Contact - Liên hệ-->
    <?php echo $this->action('index', 'contact','front',array());?>
     <!-- Footer -->
    <div id="footer">

        
        <p class="f-right">
            <a href="">Quiz Online</a> presented by 
            <a href="http://www.qartin.cz/">Võ Xuân Hoan</a> 
        </p>
       
        <p>Copyright &copy;&nbsp;2012 <strong><a href="#">Trắc nghiệm online</a></strong>, All Rights Reserved &reg;</p>

    </div> <!-- /footer -->

</div> <!-- /main -->

</body>
</html>

    